<#macro pagination totalCounts pageSize totalPages searchForm actionUrl>
<script type="text/javascript">
	jQuery(function($) {
		$('#pagination-demo').twbsPagination({
			totalPages : ${totalPages},
			onPageClick : function(event, page) {
				debugger;
				$.ajax({
					type : 'POST',
					data : $('#${searchForm}').serializeArray(),
					url : '${actionUrl}/'+page+'/${pageSize}',
					dataType : 'json',
					success : function(data) {
						retrieveData(data);
					},
					error : function(msg) {
						alert("数据异常!");
					}
				});
			}
		});
	});
</script>
<div class="row">
	<div class="col-xs-6">
		<div class="dataTables_info" id="user-table_info" role="status"
			aria-live="polite">
			<strong>共 #{totalCounts} 条记录,每页 #{pageSize} 条,共
				#{totalPages} 页</strong>
		</div>
	</div>
	<div class="col-xs-6">
		<div class="dataTables_paginate paging_simple_numbers"
			id="user-table_paginate">
			<ul id="pagination-demo" class="pagination pull-right"></ul>
		</div>
	</div>
</div>
</#macro>
